<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    let a1 = [];
    for (let i = 1;i <= 5;i ++) {
        let value = prompt(`请输入第${i}个值`);
        a1.push(value);
    }

    console.log("第一个数组：",a1);

    let a2 = [];
    for (let i = 1;i <= 5;i ++) {
        let value = prompt(`请输入第${i}个值`);
        a2.push(value);
    }

    console.log("第一个数组：",a2);

    let a3 = a1.concat(a2);
    console.log("拼接后的数组：",a3);
</script>
</html>